#include <iostream>
#include "editor.h"

using namespace std;

int main(int argc,char* argv[]){

    Editor* editor;
    if (argc > 1){
        editor= new Editor(argv[1]);
    } else {
        //editor= new Editor("./document.cc");
        editor= new Editor();
    }
    editor->run();
    delete editor;
    return 0;
}

